package cn.ljy.authority.model.dto.response;

import lombok.Data;

@Data
public class LoginResult {
    private String token;
    private Long userId;
    private String username;
    private String nickName;
    private String avatar;
    private Boolean isNewUser;
    private Long expiresIn;
    private Boolean newUser;

    public LoginResult(String token, Long userId, String username, String nickName) {
        this.token = token;
        this.userId = userId;
        this.username = username;
        this.nickName = nickName;
        this.expiresIn = 7200L; // 2小时
    }
    public void setNewUser(Boolean newUser) {
        this.newUser = newUser;
    }
}